
module.exports = {
    devServer: {
        disableHostCheck: true,
        host: 'localhost',
        port: 8081,
        proxy: {
            '/': {
                ws: false,

                target: 'http://www.xhxlcloud.com:8080/',
                //发送请求头会被我们设置成target
                changeOrigin: true,
                //不重写请求地址
                pathReWrite: {
                    '^/': '/'
                }
            }
        }
    }
}
